import Layout from "@/components/Layout/Index.vue"
import { RouteRecordRaw } from "vue-router"
const routes: Array<RouteRecordRaw> = [
    {
        component: Layout,
        path: "/",
        redirect: {
            name: "Category"
        },
        children: [
            {
                path: '/Category',
                name: 'Category',
                component: () => import("@/views/Category/Index.vue")
            },
            {
                path: '/editCategory/:id',
                name: "editCategory",
                component: () => import("@/views/Category/OperationItem.vue")
            },
            {
                path: '/addCategory',
                name: "addCategory",
                component: () => import("@/views/Category/OperationItem.vue")
            }
        ]
    }
]

export default routes